const express = require('express')
const router = express.Router()
// 1. 导入验证数据的中间件
const expressJoi = require('@escook/express-joi')

// 导入登录接口
const login_query = require('../router-query/login')
// 2. 导入需要的验证规则对象
const { reg_login_schema } = require('../schema/index')

// 登录
router.post('/login', expressJoi(reg_login_schema), login_query.pass)

module.exports = router
